Using the opacity to control the label's visibility doesn't work
correctly, as CapsLockWarning itself changes the opacity when
the caps-lock state changes.
This reverts commit
9f5f6aa9b2c8f5f055a3c3b6ff2270a79c1b5e69.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/2215
this._mainBox.replace_child(this._entry, this._textEntry);
this._entry = this._textEntry;
}
- this._capsLockWarningLabel.opacity = secret ? 0 : 255;
+ this._capsLockWarningLabel.visible = secret;
}
_onAskQuestion(verifier, serviceName, question, secret) {